﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace Entidad
{
    public class Producto
    {
        [Required]
        [Display(Name="Id")]
        public int Id { get; set; }
        [Required]
        [Display(Name = "Denominacion")]
        public string Denominacion { get; set; }
        [Required]
        [Display(Name = "Categoria")]
        public Categoria Categoria { get; set; }
        [Required]
        [Display(Name = "Proveedor")]
        public Proveedor Proveedor { get; set; }
        [Required]
        [Display(Name = "Marca")]
        public Marca Marca { get; set; }

        [Display(Name = "Descripción")]
        public string Descripcion { get; set; }
        
        [DataType(DataType.Date)]
        public DateTime FechaRegistro { get; set; }

        [Required]
        [Display(Name = "Costo")]
        public Double Costo { get; set; }
        [Required]
        [Display(Name = "Margen de Venta")]
        public Double MargenVenta { get; set; }
        [Required]
        [Display(Name = "Iva")]
        public Double Iva { get; set; }
        [Required]
        [Display(Name = "Estado")]
        public Estado Estado { get; set; }
    }
}
